package com.hu.tool.domin;

import cn.hutool.core.clone.Cloneable;

import java.io.Serializable;

/**
 * @author linyh
 * @version 1.0
 * @email 1503386669@qq.com
 * @date 2021/1/22 15:21
 */
public class Cat implements Cloneable<Cat>, Serializable {

    private String name = "miaomiao";
    private int age = 2;

    @Override
    public Cat clone() {
        try {
            return (Cat) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }

    public Cat() {

    }

    public Cat(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
